Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 vector-feature-night-mode-enabled skin-theme-clientpref-os vector-sticky-header-enabled" lang="fr" dir="ltr"><head>
<meta charset="UTF-8">
<title>PyQt</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://fr.wikipedia.org/wiki/PyQt"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-PyQt rootpage-PyQt skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">PyQt</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="fr" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="fr" dir="ltr"><div class="infobox_v3 infobox infobox--frwiki noarchive" style="width:260px">
<div class="entete icon informatique" style="color: #000000;"><style data-mw-deduplicate="TemplateStyles:r228712691">
/* start https://fr.wikipedia.org/ */


.mw-parser-output .entete.informatique{background-image:url("./_mw_/Picto.nfo.png")}


/* end https://fr.wikipedia.org/ */
</style>
<div>PyQt</div>
</div>
<div class="images">
</div>
<div class="hr" style="height:2px;"></div>
<div class="images">
</div>
<table><caption style="color:#000000;">Informations</caption>



<tbody><tr>
<th scope="row"><a href="D%C3%A9veloppeur" title="Développeur">Développé par</a></th>
<td>
Riverbank Computing</td>
</tr>



<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Première version</a>
</th>
<td>
<span class="wd_p571"><time>1998</time></span></td>
</tr>

<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Dernière version</a>
</th>
<td>
<span class="wd_p348">6.9.1 (<time class="nowrap" datetime="2025-06-06" data-sort-value="2025-06-06">6 juin 2025</time>)<sup id="cite_ref-wikidata-a5bf1d9c3e8d1585bca8603b6e0533d0fbd9cca9_1-0" class="reference"><a href="#cite_note-wikidata-a5bf1d9c3e8d1585bca8603b6e0533d0fbd9cca9-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></span></td>
</tr>









<tr>
<th scope="row"> <a href="Langage_de_programmation" title="Langage de programmation">Écrit en</a>
</th>
<td>
C++</td>
</tr>






<tr>
<th scope="row"><a href="Syst%C3%A8me_d'exploitation" title="Système d'exploitation">Système d'exploitation</a></th>
<td>
<span class="wd_p306"><a href="Type_Unix" title="Type Unix">Type Unix</a> et <a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Plateforme_informatique" title="Plateforme informatique">Environnement</a></th>
<td>
<a href="Linux" title="Linux">Linux</a>, <a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, <a href="Mac_OS_X" class="mw-redirect" title="Mac OS X">Mac OS X</a></td>
</tr>









<tr>
<th scope="row"> Type
</th>
<td>
<a href="Biblioth%C3%A8que_graphique" title="Bibliothèque graphique">Bibliothèque graphique</a></td>
</tr>



<tr>
<th scope="row"><a href="Licence_de_logiciel" title="Licence de logiciel">Licence</a></th>
<td>
Double licence&nbsp;: <a href="Licence_publique_g%C3%A9n%C3%A9rale_GNU" title="Licence publique générale GNU">Licence publique générale GNU</a> et licence propriétaire</td>
</tr>



<tr>
<th scope="row"><a href="Site_web" title="Site web">Site web</a></th>
<td>
<span class="wd_p856"><a rel="nofollow" class="external text" href="https://riverbankcomputing.com">riverbankcomputing.com</a></span></td>
</tr>

</tbody></table>
<p class="mw-empty-elt">

</p>
</div>
<p><b>PyQt</b> est une <a href="Biblioth%C3%A8que_logicielle" title="Bibliothèque logicielle">bibliothèque</a> <a href="Logiciel_libre" title="Logiciel libre">libre</a> qui permet de lier le langage <a href="Python_(langage)" title="Python (langage)">Python</a> avec la <a href="Biblioth%C3%A8que_logicielle" title="Bibliothèque logicielle">bibliothèque</a> <a href="Qt" title="Qt">Qt</a> et distribué sous deux licences&nbsp;: une commerciale et la <a href="GNU_GPL" class="mw-redirect" title="GNU GPL">GNU GPL</a>. Il permet ainsi de créer des <a href="Interface_graphique" title="Interface graphique">interfaces graphiques</a> en <a href="Python_(langage)" title="Python (langage)">Python</a>. Une extension de <a href="Qt_Creator" title="Qt Creator">Qt Creator</a> (utilitaire graphique de création d'interfaces <a href="Qt" title="Qt">Qt</a>) permet de générer le code Python d'interfaces graphiques.
</p>

<div class="mw-heading mw-heading2"><h2 id="Un_Hello_World_avec_PyQt6">Un <i>Hello World</i> avec PyQt6</h2></div>
<p>Un exemple très simple de <a href="Hello_world" title="Hello world">Hello World</a> avec PyQt6&nbsp;:
</p>
<div class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">sys</span>
<span class="kn">from</span><span class="w"> </span><span class="nn">PyQt6.QtWidgets</span><span class="w"> </span><span class="kn">import</span> <span class="n">QApplication</span><span class="p">,</span> <span class="n">QWidget</span>

<span class="n">app</span> <span class="o">=</span> <span class="n">QApplication</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">)</span>

<span class="n">root</span> <span class="o">=</span> <span class="n">QWidget</span><span class="p">()</span>

<span class="n">root</span><span class="o">.</span><span class="n">resize</span><span class="p">(</span><span class="mi">250</span><span class="p">,</span> <span class="mi">250</span><span class="p">)</span>
<span class="n">root</span><span class="o">.</span><span class="n">setWindowTitle</span><span class="p">(</span><span class="s2">"Hello world!"</span><span class="p">)</span>
<span class="n">root</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

<div class="mw-heading mw-heading2"><h2 id="Applications_utilisant_PyQt">Applications utilisant PyQt</h2></div>
<ul><li><a href="Anki" title="Anki">Anki</a></li>
<li><a href="Calibre_(logiciel)" title="Calibre (logiciel)">Calibre</a></li>
<li><a href="Dropbox" title="Dropbox">Dropbox</a></li>
<li><a href="Frescobaldi_(logiciel)" title="Frescobaldi (logiciel)">Frescobaldi</a></li>
<li><a href="QGIS" title="QGIS">QGIS</a></li>
<li><a href="Recordmydesktop" title="Recordmydesktop">RecordMyDesktop</a></li>
<li><a href="Spyder_(logiciel)" title="Spyder (logiciel)">Spyder</a></li>
<li><a href="TortoiseHg" title="TortoiseHg">TortoiseHg</a></li>
<li>...</li></ul>
<div class="mw-heading mw-heading2"><h2 id="PySide">PySide</h2></div>
<p>Le <time class="nowrap date-lien" datetime="2009-08-18" data-sort-value="2009-08-18"><a href="18_ao%C3%BBt" title="18 août">18</a> <a href="Ao%C3%BBt_2009" title="Août 2009">août</a> <a href="2009_en_informatique" title="2009 en informatique">2009</a></time>, après des pourparlers avec les auteurs de PyQt pour un changement de licence<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>, <a href="Nokia" title="Nokia">Nokia</a> distribue sa propre <a href="Biblioth%C3%A8que_logicielle" title="Bibliothèque logicielle">bibliothèque</a> entre <a href="Python_(langage)" title="Python (langage)">Python</a> et <a href="Qt" title="Qt">Qt</a>&nbsp;: <a href="PySide" title="PySide">PySide</a><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>, sous une licence plus permissive, la <a href="Licence_publique_g%C3%A9n%C3%A9rale_limit%C3%A9e_GNU" title="Licence publique générale limitée GNU">licence publique générale limitée GNU</a> (LGPL).
</p>
<div class="mw-heading mw-heading2"><h2 id="Bibliographie">Bibliographie</h2></div>
<ul><li><span id="Q101116181" class="ouvrage"><span class=""><span class="ouvrage" id="Prieur2021"><span class="ouvrage" id="Benoît_Prieur2021">Benoît Prieur, <cite class="italique">PyQt5 - Développez vos interfaces graphiques en Python</cite>, Éditions ENI, <time class="nowrap" datetime="2021-01-13" data-sort-value="2021-01-13">13 janvier 2021</time>, 331&nbsp;<abbr class="abbr" title="pages">p.</abbr> <small style="line-height:1em;">(<a href="International_Standard_Book_Number" title="International Standard Book Number">ISBN</a>&nbsp;<span class="nowrap">978-2-409-02862-5</span>, <a href="Online_Computer_Library_Center" title="Online Computer Library Center">OCLC</a>&nbsp;<span class=" noarchive nowrap"><a rel="nofollow" class="external text" href="https://worldcat.org/fr/title/1237358875">1237358875</a></span>)</small><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=PyQt5+-+D%C3%A9veloppez+vos+interfaces+graphiques+en+Python&amp;rft.pub=%C3%89ditions+ENI&amp;rft.aulast=Prieur&amp;rft.aufirst=Beno%C3%AEt&amp;rft.date=2021-01-13&amp;rft.tpages=331&amp;rft_id=info%3Aoclcnum%2F1237358875&amp;rfr_id=info%3Asid%2Ffr.wikipedia.org%3APyQt"></span></span></span>.</span></span></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes_et_références"><span id="Notes_et_r.C3.A9f.C3.A9rences"></span>Notes et références</h2></div>
<div class="references-small decimal" style=""><div class="mw-references-wrap"><ol class="references">
<li id="cite_note-wikidata-a5bf1d9c3e8d1585bca8603b6e0533d0fbd9cca9-1"><span class="mw-cite-backlink"><a href="#cite_ref-wikidata-a5bf1d9c3e8d1585bca8603b6e0533d0fbd9cca9_1-0">↑</a> </span><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="https://riverbankcomputing.com/news/PyQt_v6.9.1_Released"><cite style="font-style:normal;">https://riverbankcomputing.com/news/PyQt_v6.9.1_Released</cite></a>&nbsp;»</span></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a> </span><span class="reference-text"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr><a rel="nofollow" class="external free" href="http://www.pyside.org/faq/">http://www.pyside.org/faq/</a></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a> </span><span class="reference-text"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> <a rel="nofollow" class="external text" href="http://www.pyside.org/">site officiel de PySide</a></span>
</li>
</ol></div>
</div>
<div class="mw-heading mw-heading2"><h2 id="Liens_externes">Liens externes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r194021218">
/* start https://fr.wikipedia.org/ */


.mw-parser-output .autres-projets>.titre{text-align:center;margin:0.2em 0}.mw-parser-output .autres-projets>ul{margin:0;padding:0}.mw-parser-output .autres-projets>ul>li{list-style:none;margin:0.2em 0;text-indent:0;padding-left:24px;min-height:20px;text-align:left;display:block}.mw-parser-output .autres-projets>ul>li>a{font-style:italic}@media(max-width:720px){.mw-parser-output .autres-projets{float:none}}


/* end https://fr.wikipedia.org/ */
</style>
<p class="mw-empty-elt">
</p>
<ul><li><cite class="ouvrage" id="site_officiel" style="font-style: normal;"><span class="wd_p856"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr>&nbsp;<a rel="nofollow" class="external text" href="https://riverbankcomputing.com">Site officiel</a></span></cite></li>
<li class="mw-empty-elt"></li>
<li class="mw-empty-elt"></li>
<li class="mw-empty-elt"></li></ul>
<div class="navbox-container" style="clear:both;">

</div>
<ul id="bandeau-portail" class="bandeau-portail"><li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"></span></span> <span class="bandeau-portail-texte">Portail de la programmation informatique</span> </span></li> <li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"></span></span> <span class="bandeau-portail-texte">Portail des logiciels libres</span> </span></li> </ul></div><!--htdig_noindex--><div><div class="zim-footer">
Cet article est issu de <a class="external text" title="Dernière modification le 2025-10-06" href="https://fr.wikipedia.org/wiki/?title=PyQt&amp;oldid=229552258">Wikipédia</a>. Sauf mention contraire, le texte est disponible sous <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.fr">Creative Commons Attribution-Share Alike 4.0</a>. Des conditions supplémentaires peuvent s’appliquer aux fichiers multimédias.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>